package com.hogwarts.webui;

import com.hogwarts.base.WebUIBase;
import com.hogwarts.webui.pageobj.JsOps;
import io.qameta.allure.Feature;
import io.qameta.allure.Story;
import org.apache.log4j.Logger;
import org.junit.jupiter.api.Test;

@Feature("WebUI RunJS")
public class WebUITestRunJS extends WebUIBase {
    private Logger logger = Logger.getLogger(WebUITestRunJS.class);

    @Test
    @Story("JS输入")
    public void bingPO(){
        //打开12306网站
        navigation.to("https://www.12306.cn/index/");
        wait(2);
        JsOps.inputDataJS(driver, "北京", "上海", "2024-08-10");
        wait(10);
    }

}
